<?php

function build_crum($sect)
{
	$out = "";
	//foreach($sect as $k )
	
	for($i=0; $i<count($sect); $i++)
	{
	
		if(($i+1) == count($sect))
		{
		$out .= "<span class='crumLast'>" . $sect[$i] ."</span>";
		}
		else{
			$out .= $sect[$i] ."<span class='crumSep'> >> </span>";
		}
	}
	
	//$out = substr($out,0,-33);
	
	return ":: " . $out;
}